import http from "./http";

// 获取项目
export const projects = (data) => http.get("/api/projects", data);
// 创建项目
export const create_projects = (data) => http.post("/api/project", data);
// 修改项目
export const modify_projects = (id, data) => http.patch(`/api/project/${id}`, data);
// 删除项目
export const delete_projects = (id) => http.delete(`/api/projects/${id}`);
